# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-prompt_toolkit
_pkgname=prompt_toolkit
pkgver=2.0.10
pkgrel=4
pkgdesc='Library for building powerful interactive command lines in Python.'
url='https://pypi.org/project/prompt_toolkit/#files'
arch=('any')
license=('BSD')
depends=('python2' 'python2-six' 'python2-wcwidth' 'python2-pygments')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('b91292cf43607b3a7018ca29827f0aa9bc90efc064c68faffe02ad28e4bb60f45fc2d25bbfd9a40a383a815cb08596975f08237a498f94a5c088d56d3a0a9803')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

